package com.dwd.hrm.exception;
/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/3/5 14:27
 * @Version 1.0
 */
public enum SystemError {
    //不可为空的错误码
    CODE_400_PARAM_VALID(400,"参数校验错误！"),
    CODE_500_SYSTEM_ERROR(500,"内部错误，请联系管理员！");
    private Integer code;
    private String message;

    SystemError() {
    }

    SystemError(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "SystemError{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
